package com.cyz.web.app.responsibility.level;

public class Client {

    public static void main(String[] args) {

        AnswerRequest request = new AnswerRequest("王五",2, "初级问题");


        Handler primary = new PrimaryEngineer();

        Handler mediate = new MediateEngineer();

        Handler senior = new SeniorEngineer();

        primary.setNextHandler(mediate);
        mediate.setNextHandler(senior);

        primary.submit(request);



    }
}
